<#include "header.htm"/>

<div id="tabs">
			<ul>
				<li><a href="${JForumContext.encodeURL("/admBase/login")}"><span>${I18n.getMessage("Admin.general")}</span></a></li>
	
			
				<li><a href="${contextPath}/adminGroups/list${extension}"><span>${I18n.getMessage("Admin.groups")}</span></a></li>
				<li><a href="${contextPath}/adminUsers/list${extension}"><span>${I18n.getMessage("Admin.users")}</span></a></li>
				<li><a href="${contextPath}/adminCategories/list${extension}"><span>${I18n.getMessage("Admin.categories")}</span></a></li>				
				<li><a href="${contextPath}/adminForums/list${extension}"><span>${I18n.getMessage("Admin.forums")}</span></a></li>
				<li id="activetab"><a href="${contextPath}/adminModeration/list${extension}"><span>${I18n.getMessage("Admin.approving")}</span></a></li>
			
				<li><a href="${contextPath}/adminRankings/list${extension}"><span>${I18n.getMessage("Admin.rankings")}</span></a></li>				
				<li><a href="${contextPath}/adminBanning/list${extension}"><span>${I18n.getMessage("Admin.banning")}</span></a></li>
				
				
				
				
				<li><a href="${contextPath}/adminConfig/list${extension}"><span>${I18n.getMessage("Admin.configurations")}</span></a></li>
			
				<li><a href="${contextPath}/adminSmilies/list${extension}"><span>${I18n.getMessage("Admin.smilies")}</span></a></li>
			
				<li><a href="${contextPath}/adminSearchStats/list${extension}"><span>${I18n.getMessage("Admin.search")}</span></a></li>
			
				<li><a href="${contextPath}/adminAttachments/configurations${extension}"><span>${I18n.getMessage("Admin.attachments")}</span></a></li>
			
				<li><a href="${contextPath}/adminCache/list${extension}"><span>${I18n.getMessage("Admin.cache")}</span></a></li>
			
			</ul>
</div>




<div id="acp">
		<div class="panel">
			<span class="corners-top"><span></span></span>
				<div id="content">

<#setting number_format = "#"/>

<form action="${contextPath}/jforum${extension}" method="post" name="form" id="form" accept-charset="${encoding}">
<input type="hidden" name="action" value="save" />
<input type="hidden" name="module" value="${moduleName}" />
<input type="hidden" name="forum_id" value="${forum.id}"/>



    <h3>${I18n.getMessage("Moderation.Admin.pendingPosts")}</h3>
	


	
	<#if topics.size() == 0>
		<p>${I18n.getMessage("Moderation.Admin.noneToModerate")}</p>
	<#else>
		<#list topics.values() as info>
					<#list info.posts as post>
                	
                	
   	<fieldset>
	     	<legend>${info.topicTitle?html}</legend>
	        <dl>
		         
		        
		             <div class="right-box">
                		<input type="radio" id="status_approve_${post.id}" name="status_${post.id}" value="aprove" class="radio"/><label for="status_approve_${post.id}">${I18n.getMessage("Moderation.Admin.aprove")}</label>&nbsp;
						<input type="radio" id="status_defer_${post.id}" name="status_${post.id}" value="defer" checked="checked" class="radio"/><label for="status_defer_${post.id}">${I18n.getMessage("Moderation.Admin.defer")}</label>&nbsp;
						<input type="radio" id="status_deny_${post.id}" name="status_${post.id}" value="reject" class="radio"/><label for="status_deny_${post.id}">${I18n.getMessage("Moderation.Admin.reject")}</label>&nbsp;
						<input type="hidden" name="post_id" value="${post.id}" />
					</div>
                	
               			<#if (info.topicReplies > 0)>
							<a href="${JForumContext.encodeURL("/posts/list/${topic.topicId}")}"><strong>${info.topicTitle?html}</strong></a>
						<#else>
							<strong>${info.topicTitle?html}</strong>
						</#if>
                	
                	<p class="author"><img src="${contextPath}/templates/${templateName}/img/icon_post_target.gif" width="11" height="9" alt="Post" title="Post"></a> ${I18n.getMessage("by")} <strong><a href="${JForumContext.encodeURL("/user/profile/${post.userId}")}">${post.postUsername}</a></strong></p>
                	<div class="content">${post.text}</div>
		        
	        </dl>
		
	</fieldset>

						
						</#list>
					</#list>
					
	</#if>

<fieldset class="submit-buttons">
		<input class="button1" type="submit" value="${I18n.getMessage("Moderation.Admin.submit")}" name="submit">
</fieldset>


</form>


</div>
	<span class="corners-bottom"><span></span></span>
</div>
</div>

<#include "bottom.htm"/>